package com.open.center.jwt.config;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.validation.annotation.Validated;

/**
 * Jwt参数配置
 */
@Getter
@Setter
@ToString
@Validated
@Configuration
@ConfigurationProperties(prefix = "jwt")
@EnableConfigurationProperties(JwtProperties.class)
public class JwtProperties {

    /**
     * 密钥库
     */
    private String keyStore = "jwt/jwt.p12";

    /**
     * 密钥库密码
     */
    private String keyPass = "QWRtaW5AMjAyMA==";

    /**
     * 证书密码
     */
    private String storePass = "QWRtaW5AMjAyMA==";

    /**
     * 过期时间
     */
    private Long expTime = 48L;

}
